<?php

class Admin_Form_UpdateState extends Zend_Form {

    public function init() {
        /* Form Elements & Other Definitions Here ... */
    }

    public function main($info) {
        $this->setMethod('post');

        #name
        $name = new Zend_Form_Element_Text('name');
        $name->setLabel('State:')
                ->setValue($info['name']);

        #id
        $id = new Zend_Form_Element_Hidden('id');
        $id->setValue($info['id']);

        #submit
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Update State')
                ->setAttribs(array('class' => 'btn btn-success'));

        $this->addElements(array($name, $id, $submit));
    }

}

